<template>
  <el-row :gutter="20">
    <el-col :span="12">
      <el-card shadow="hover" @click="goToMapSql">
        <template v-slot:header>
          <div class="clearfix">
            <span>MapSql</span>
          </div>
        </template>
        <div>
          这是一个MapSql卡片，点击进入MapSql页面。
        </div>
      </el-card>
    </el-col>
    <el-col :span="12">
      <el-card shadow="hover" @click="goToMapBean">
        <template v-slot:header>
          <div class="clearfix">
            <span>MapBean</span>
          </div>
        </template>
        <div>
          这是一个MapBean卡片，点击进入MapBean页面。
        </div>
      </el-card>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: 'FunctionChoose',
  methods: {
    goToMapSql() {
      this.$router.push('/mapsql');
    },
    goToMapBean() {
      this.$router.push('/mapbean');
    }
  }
};
</script>

<style scoped>
.clearfix {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}
</style>